home *** CD-ROM | disk | FTP | other *** search
/ C!T ROM 3 / ct-rom iiib.zip / ct-rom iiib / WINDOWS / DIVERSEN / WINE02BX / MENUBAR.ELC < prev    next >
Text File  |  1993-03-28  |  16KB  |  144 lines

  1. ;;; compiled by @win386 on Sat Mar 13 01:39:03 1993
  2. ;;; from file c:/src/lucid-19.4/lisp/prim/menubar.el
  3. ;;; emacs version 19.3 Lucid.
  4. ;;; bytecomp version 2.08; 27-aug-92.
  5. ;;; optimization is on.
  6. ;;; this file uses opcodes which do not exist in Emacs18.
  7.  
  8. (if (and (boundp 'emacs-version)
  9.      (or (and (boundp 'epoch::version) epoch::version)
  10.          (string-lessp emacs-version "19")))
  11.     (error "This file was compiled for Emacs19."))
  12.  
  13. (byte-code "└┬ç" [(("File" ["New Screen" x-new-screen t] ["Open File..." find-file t] ["Save Buffer" save-buffer t nil] ["Save Buffer As..." write-file t] ["Revert Buffer" revert-buffer t nil] "-----" ["Print Buffer" lpr-buffer t nil] "-----" ["Delete Screen" delete-screen t] ["Kill Buffer" kill-this-buffer t nil] ["Exit Emacs" save-buffers-kill-emacs t]) ("Edit" ["Undo" advertised-undo t] ["Cut" x-kill-primary-selection t] ["Copy" x-copy-primary-selection t] ["Paste" x-yank-clipboard-selection t] ["Clear" x-delete-primary-selection t]) ("Buffers" "") nil ("Help" ["Info" info t] ["Describe Mode" describe-mode t] ["Command Apropos..." command-apropos t] ["List Keybindings" describe-bindings t] ["Describe Key..." describe-key t] ["Describe Function..." describe-function t] ["Describe Variable..." describe-variable t] "-----" ["Unix Manual..." manual-entry t] ["Emacs Tutorial" help-with-tutorial t] ["Emacs News" view-emacs-news t])) default-menubar nil] 1)
  14. (fset 'kill-this-buffer #[nil "└p!ç" [kill-buffer] 2 "\
  15. Kills the current buffer." nil])
  16. (fset 'x-new-screen #[(&optional screen-name) "└┴\n¡ä├\nBC!!ê─┼╞!!ê╟╚!¡å¡é╔ ç" [select-screen x-create-screen screen-name name switch-to-buffer get-buffer-create "*scratch*" boundp evi-install-undo-list evi-mode] 4 "\
  17. Creates a new emacs screen (that is, a new X window.)" nil])
  18. (fset 'set-menubar #[(menubar) "└┴┬ !\"ê─ ç" [set-default current-menubar copy-sequence menubar set-menubar-dirty-flag] 4 "\
  19. Set the default menubar to be menubar."])
  20. (fset 'set-buffer-menubar #[(menubar) "└┴!ê┬ !─ ç" [make-local-variable current-menubar copy-sequence menubar set-menubar-dirty-flag] 2 "\
  21. Set the buffer-local menubar to be menubar."])
  22. (fset 'find-menu-item #[(menubar path &optional parent) "¼à┴┬ \" :??¡≤ ┼ë½╗@½« @╚@!½ç@╔H¬Å@;½à@¬ä@@ùܽï@┼ë¬KAë¼E A½ª:½ï╩A A#¬Ü½ë╦╠═D\"¬ì╦╠╬ @D\"¬äB*ç" [parent mapcar downcase path menubar nil result rest vectorp 0 find-menu-item signal error "not a submenu" "no such submenu"] 5])
  23. (fset 'disable-menu-item #[(path) "┬     \"ë@ A¼Ä╟╚½â╔¬ü╩ D\"ê:½ä╚╦!ê╠═Iê╬ ê,ç" [current-menubar menubar find-menu-item path pair item menu signal error "No such menu item" "No such menu" "can't disable menus, only menu items" 2 nil set-menubar-dirty-flag] 5 "\
  24. Make the named menu item be unselectable.
  25. PATH is a list of strings which identify the position of the menu item in 
  26. the menu hierarchy.  (\"File\" \"Save\") means the menu item called \"Save\"
  27. under the toplevel \"File\" menu.  (\"Menu\" \"Foo\" \"Item\") means the 
  28. menu item called \"Item\" under the \"Foo\" submenu of \"Menu\"."])
  29. (fset 'enable-menu-item #[(path) "┬     \"ë@ A¼Ä╟╚½â╔¬ü╩ D\"ê:½à╚╦ \"ê╠═Iê╬ ê,ç" [current-menubar menubar find-menu-item path pair item menu signal error "No such menu item" "No such menu" "%S is a menu, not a menu item" 2 t set-menubar-dirty-flag] 5 "\
  30. Make the named menu item be selectable.
  31. PATH is a list of strings which identify the position of the menu item in 
  32. the menu hierarchy.  (\"File\" \"Save\") means the menu item called \"Save\"
  33. under the toplevel \"File\" menu.  (\"Menu\" \"Foo\" \"Item\") means the 
  34. menu item called \"Item\" under the \"Foo\" submenu of \"Menu\"."])
  35. (fset 'add-menu-item-1 #[(item-p menu-path item-name item-data enabled-p before) "½âù    ├─┼Åë<½ï╟AC\"@¬ç╔╩╦ D\"¼▐ \në½╙\n=½ï╟@C\"@¬è╟A@C\"@뼺ëA½ÄA@½êAë¬o@CëCAñíê)Aë¼-*¼â\n¼≤½î╥#¬çB½ê╟C\"@├½óA@=½ÆABíê├╓¬bAë¼^¼ƒ\n=½Æ@=½ïBë¬çCñê*½Æ╫Iê╪??Iê¬îáêíê┘ ê+ç" [before current-menubar menubar nil (byte-code "└    \n\"@ç" [find-menu-item menubar menu-path] 3) ((error)) menu find-menu-item item-name signal error "not a submenu" menu-path item so-far rest rest2 item-p vector item-data enabled-p added-before t 1 2 set-menubar-dirty-flag] 5])
  36. (fset 'add-menu-item #[(menu-path item-name function enabled-p &optional before) "¼ä┴┬!ê ¼ä┴─!ê┼╞     &ç" [menu-path error "must specify a menu path" item-name "must specify an item name" add-menu-item-1 t function enabled-p before] 7 "\
  37. Add a menu item to some menu, creating the menu first if necessary.
  38. If the named item exists already, it is changed.
  39. MENU-PATH identifies the menu under which the new menu item should be inserted.
  40.  It is a list of strings; for example, (\"File\") names the top-level \"File\"
  41.  menu.  (\"File\" \"Foo\") names a hypothetical submenu of \"File\".
  42. ITEM-NAME is the string naming the menu item to be added.
  43. FUNCTION is the command to invoke when this menu item is selected.
  44.  If it is a symbol, then it is invoked with `call-interactively', in the same
  45.  way that functions bound to keys are invoked.  If it is a list, then the 
  46.  list is simply evaluated.
  47. ENABLED-P controls whether the item is selectable or not.
  48. BEFORE, if provided, is the name of a menu item before which this item should
  49.  be added, if this item is not on the menu already.  If the item is already
  50.  present, it will not be moved."])
  51. (fset 'delete-menu-item #[(path) "┬     \"ë@ A«ü    ??¡ÿ=½ê╟\"¬å╟\"ê╚ ê,ç" [current-menubar menubar find-menu-item path pair item menu delq set-menubar-dirty-flag] 4 "\
  52. Remove the named menu item from the menu hierarchy.
  53. PATH is a list of strings which identify the position of the menu item in 
  54. the menu hierarchy.  (\"File\" \"Save\") means the menu item called \"Save\"
  55. under the toplevel \"File\" menu.  (\"Menu\" \"Foo\" \"Item\") means the 
  56. menu item called \"Item\" under the \"Foo\" submenu of \"Menu\"."])
  57. (fset 'relabel-menu-item #[(path new-name) ";¼ç┴┬├D\" ╞\"ë@    A\n    ¼Å┴╦\n½â╠¬ü═D\"ê    :½ì    @;½ç    áê¬å    ╬Iê╧ ê    ,ç" [new-name signal wrong-type-argument stringp current-menubar menubar find-menu-item path pair item menu error "No such menu item" "No such menu" 0 set-menubar-dirty-flag] 5 "\
  58. Change the string of the specified menu item.
  59. PATH is a list of strings which identify the position of the menu item in 
  60. the menu hierarchy.  (\"File\" \"Save\") means the menu item called \"Save\"
  61. under the toplevel \"File\" menu.  (\"Menu\" \"Foo\" \"Item\") means the 
  62. menu item called \"Item\" under the \"Foo\" submenu of \"Menu\".
  63. NEW-NAME is the string that the menu item will be printed as from now on."])
  64. (fset 'add-menu #[(menu-path menu-name menu-items &optional before) "¼ä┴┬!ê ¼ä┴─!ê┼╞ ╚    &ç" [menu-name error "must specify a menu name" menu-items "must specify some menu items" add-menu-item-1 nil menu-path t before] 7 "\
  65. Add a menu to the menubar or one of its submenus.
  66. If the named menu exists already, it is changed.
  67. MENU-PATH identifies the menu under which the new menu should be inserted.
  68.  It is a list of strings; for example, (\"File\") names the top-level \"File\"
  69.  menu.  (\"File\" \"Foo\") names a hypothetical submenu of \"File\".
  70.  If MENU-PATH is nil, then the menu will be added to the menubar itself.
  71. MENU-NAME is the string naming the menu to be added.
  72. MENU-ITEMS is a list of menu item descriptions.
  73.  Each menu item should be a vector of three elements:
  74.    - a string, the name of the menu item;
  75.    - a symbol naming a command, or a form to evaluate;
  76.    - and t or nil, whether this item is selectable.
  77. BEFORE, if provided, is the name of a menu before which this menu should
  78.  be added, if this menu is not on its parent already.  If the menu is already
  79.  present, it will not be moved."])
  80. (byte-code "└┴!¼é┬└ç" [boundp put-buffer-names-in-file-menu t] 2)
  81. (fset 'sensitize-file-and-edit-menus-hook #[nil "└    ┬\"@A└    ─\"@A└ ╞\"@└ ╚\"@    └ ╩\"@ └ ╠\"@└ ╬\"@└╨\"@└╥\"@└╘\"@└╓\"@└╪\"@«à└┘\"@█ ▌ ▀α!!Γ#Γ$%µ=?¡ô'┌=¡ìΦΘ!¡é)$Γë%??*Γ+Γ,½èφH=?«┘½èφH=?«╦½èφH=?«╜½è!φH=?«»½èε φH=?«í    ½î/??    φH=?«æ ¡ì≡Γëµ#± = φH=23½─G⌠U½è⌡Iêµ2    G⌠U½è    ⌡Iêµ2G⌠U½è⌡Iêµ2G⌠U½è⌡Iêµ2½çφε Iê    ½ë    φ/??Iê ½Ä φ≡Γëµ#± =?Iê½çφIê½çφIê½çφIê½çφ!Iê'┌=½É÷+ΦΘ!¡é)??,¬Ö≈+%µ=?¡ì%«çΦΘ!¡é)??,8½âΓ,½ú+∙Hܽë,φH=¼æ∙+Iêφ,Iêµ22.?ç" [find-menu-item current-menubar ("File") file-menu ("Edit") edit-menu ("Save Buffer") save ("Revert Buffer") rvt ("Delete Screen") del ("Print Buffer") print ("Kill Buffer") kill ("Cut") cut ("Copy") copy ("Paste") paste ("Clear") clear ("Undo") ("Undo More") undo buffer-name name x-selection-owner-p emacs-owns-selection-p x-selection-exists-p CLIPBOARD clipboard-exists-p nil undo-available undoing-more buffer-undo-list t last-command boundp pending-undo-list undo-info-available undo-name undo-state 2 buffer-modified-p buffer-file-name next-screen selected-screen change-p put-buffer-names-in-file-menu 4 3 "Undo More" "Undo" buffer-read-only 0] 6 "\
  82. For use as a value of activate-menubar-hook.
  83. This function changes the sensitivity of these File and Edit menu items:
  84.  
  85.   Cut    sensitive only when emacs owns the primary X Selection.
  86.   Copy   sensitive only when emacs owns the primary X Selection.
  87.   Clear  sensitive only when emacs owns the primary X Selection.
  88.   Paste  sensitive only when there is an owner for the X Clipboard Selection.
  89.   Undo   sensitive only when there is undo information.
  90.          While in the midst of an undo, this is changed to \"Undo More\".
  91.  
  92.   Kill Buffer    has the name of the current buffer appended to it.
  93.   Print Buffer   has the name of the current buffer appended to it.
  94.   Save Buffer    has the name of the current buffer appended to it, and is
  95.                  sensitive only when the current buffer is modified.
  96.   Revert Buffer  has the name of the current buffer appended to it, and is
  97.                  sensitive only when the current buffer has a file.
  98.   Delete Screen  sensitive only when there is more than one visible screen."])
  99. (fset 'format-buffers-menu-line #[(buffer) "└┴┬ !\"?¡ªè qê─ ╞╟╚ ½â╔¬ü╩ ½â╠¬ü╩┬ ╬ «ü╧&*ç" [string-match "\\` " buffer-name buffer buffer-size size format "%s%s %-19s %6s %-15s %s" buffer-modified-p "*" " " buffer-read-only "%" mode-name buffer-file-name ""] 8 "\
  100. Returns a string to represent the given buffer in the Buffer menu.
  101. nil means the buffer shouldn't be listed.  You can redefine this."])
  102. (fset 'format-buffers-menu-line #[(buffer) "└┴┬ !ë\"?¡ü ç" [string-match "\\` " buffer-name buffer] 4])
  103. (defvar buffers-menu-max-size 10 "\
  104. *Maximum number of entries which may appear on the \"Buffers\" menu.
  105. If this is 10, then only the ten most-recently-selected buffers will be
  106. shown.  If this is nil, then all buffers will be shown.  Setting this to
  107. a large number or nil will slow down menu responsiveness.")
  108. (defvar complex-buffers-menu-p nil "\
  109. *If true, the buffers menu will contain several commands, as submenus
  110. of each buffer line.  If this is false, then there will be only one command:
  111. select that buffer.")
  112. (defvar buffers-menu-switch-to-buffer-function 'switch-to-buffer "\
  113. *The function to call to select a buffer from the buffers menu.
  114. `switch-to-buffer' is a good choice, as is `pop-to-buffer'.")
  115. (byte-code "└┴Mê┬├Mê─┼Mê╞─╟╚#ç" [buffer-menu-save-buffer #[(buffer) "èqê┴ )ç" [buffer save-buffer] 1] buffer-menu-write-file #[(buffer) "èqê┴┬├─p!┼Q!!)ç" [buffer write-file read-file-name "Write " buffer-name " to file: "] 5] build-buffers-menu-internal #[(buffers) "└ë├ ½â┼¬ü╞\"*ç" [nil line name mapcar complex-buffers-menu-p #[(buffer) "└    !ë¡┤\n├─╞    !ëD╚#╔    !½Å╩    !½è├╦╠D╚#¬ü═├╬╧D╚#├╨╤D╚#»ç" [format-buffers-menu-line buffer line vector "Switch to Buffer" buffers-menu-switch-to-buffer-function buffer-name name t buffer-modified-p buffer-file-name "Save Buffer" buffer-menu-save-buffer ["Save Buffer" nil nil] "Save Buffer As..." buffer-menu-write-file "Kill Buffer" kill-buffer] 8] #[(buffer) "└    !ë¡ë├\n ┼    !D╞#ç" [format-buffers-menu-line buffer line vector buffers-menu-switch-to-buffer-function buffer-name t] 5] buffers] 3] put byte-optimizer byte-compile-inline-expand] 4)
  116. (fset 'build-buffers-menu-hook #[nil "└    ┬\"@├ëë??¡╟╟ ¿½ö╔V½Ä GV½ç ¢├íê ├ë\n╦ ½â═¬ü╬ \"+╧├ \"╨ñëAܽâ╤¬å íê├+ç" [find-menu-item current-menubar ("Buffers") nil buffers name buffer-menu buffer-list buffers-menu-max-size 1 line mapcar complex-buffers-menu-p #[(buffer) "└    !ë¡┤\n├─╞    !ëD╚#╔    !½Å╩    !½è├╦╠D╚#¬ü═├╬╧D╚#├╨╤D╚#»ç" [format-buffers-menu-line buffer line vector "Switch to Buffer" buffers-menu-switch-to-buffer-function buffer-name name t buffer-modified-p buffer-file-name "Save Buffer" buffer-menu-save-buffer ["Save Buffer" nil nil] "Save Buffer As..." buffer-menu-write-file "Kill Buffer" kill-buffer] 8] #[(buffer) "└    !ë¡ë├\n ┼    !D╞#ç" [format-buffers-menu-line buffer line vector buffers-menu-switch-to-buffer-function buffer-name t] 5] delq ("----" ["List All Buffers" list-buffers t]) t] 4 "\
  117. For use as a value of activate-menubar-hook.
  118. This function changes the contents of the \"Buffers\" menu to correspond
  119. to the current set of buffers.  Only the most-recently-used few buffers
  120. will be listed on the menu, for efficiency reasons.  You can control how
  121. many buffers will be shown by setting `buffers-menu-max-size'.
  122. You can control the text of the menu items by redefining the function
  123. `format-buffers-menu-line'."])
  124. (byte-code "└┴┬\"ê└┴├\"ê─!ç" [add-hook activate-menubar-hook build-buffers-menu-hook sensitize-file-and-edit-menus-hook set-menubar default-menubar] 3)
  125. (fset 'yes-or-no-p-dialog-box #[(prompt) "└ ┴─╞B!ê╟╚ì*ç" [allocate-event 0 echo-keystrokes event popup-dialog-box prompt (["Yes" yes t] ["No" no t] nil ["Abort" abort t]) ynp-done (byte-code "└    !ê┬    !½Ä├    !─=½ç┼╞╟\"ê¬i┬    !½Ä├    !╚=½ç┼╞╔\"ê¬V┬    !½ò├    !╩=¼ç├    !╦=½ç╠═╔\"ê¬<╬    !¼7╧ ê╨╤!ê¬." [next-command-event event menu-event-p event-object yes throw ynp-done t no nil abort menu-no-selection-hook signal quit button-release-event-p beep message "please answer the dialog box"] 3)] 3 "\
  126. Ask user a \"y or n\" question with a popup dialog box.
  127. Returns t if answer is \"yes\".
  128. Takes one argument, which is the string to display to ask the question."])
  129. (fset 'yes-or-no-p-maybe-dialog-box #[(prompt) "└    !¼è┬    !¼à├    !½ä─!ç╞!ç" [button-press-event-p last-command-event button-release-event-p menu-event-p yes-or-no-p-dialog-box prompt yes-or-no-p-minibuf] 2 "\
  130. Ask user a yes-or-no question.  Return t if answer is yes.
  131. The question is asked with a dialog box or the minibuffer, as appropriate.
  132. Takes one argument, which is the string to display to ask the question.
  133. It should end in a space; `yes-or-no-p' adds `(yes or no) ' to it.
  134. The user must confirm the answer with RET,
  135. and can edit it until it as been confirmed."])
  136. (fset 'y-or-n-p-maybe-dialog-box #[(prompt) "└    !¼è┬    !¼à├    !½ä─!ç╞!ç" [button-press-event-p last-command-event button-release-event-p menu-event-p yes-or-no-p-dialog-box prompt y-or-n-p-minibuf] 2 "\
  137. Ask user a \"y or n\" question.  Return t if answer is \"y\".
  138. Takes one argument, which is the string to display to ask the question.
  139. The question is asked with a dialog box or the minibuffer, as appropriate.
  140. It should end in a space; `y-or-n-p' adds `(y or n) ' to it.
  141. No confirmation of the answer is requested; a single character is enough.
  142. Also accepts Space to mean yes, or Delete to mean no."])
  143. (byte-code "└┴!½ê┬├Mê─┼Mê╞╟!ç" [fboundp popup-dialog-box yes-or-no-p yes-or-no-p-maybe-dialog-box y-or-n-p y-or-n-p-maybe-dialog-box provide menubar] 2)
  144.